<?php
if(isset($_POST))
{
	session_start();
	require_once("../includes/user.php");
	$from = explode("/", $_POST['from_date']);
	$to= explode("/", $_POST['to_date']);
	$_POST['from_date']=$from[2].'-'.$from[1].'-'.$from[0];
	$_POST['to_date']=$to[2].'-'.$to[1].'-'.$to[0];
	$_POST['profile_id']=$_SESSION['id'];
	$user=new User;
	echo $user->saveAddQuiz($_POST);
}
?>